package com.css.apps.base.log.action;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;

import com.css.webbase.webwork.action.AdminAction;
import com.opensymphony.xwork.Action;

/*
 * 显示chart的action
 * */
public class LogOSChartAction extends AdminAction{
	
	private static final long serialVersionUID = 1L;
	private String osdate;
	private String ostypes;
	private String osvalues;
	private String res = "success";
	
	@Override
	protected String adminGo() {
		//对中文参数进行解码
		try {
			ostypes = URLDecoder.decode(ostypes, "utf-8");
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
			return Action.ERROR;
		}
		if(res.equals("chart")){
			return res;
		}
		return res;
	}

	public String getOsdate() {
		return osdate;
	}

	public void setOsdate(String osdate) {
		this.osdate = osdate;
	}

	public String getOstypes() {
		return ostypes;
	}

	public void setOstypes(String ostypes) {
		this.ostypes = ostypes;
	}

	public String getOsvalues() {
		return osvalues;
	}

	public void setOsvalues(String osvalues) {
		this.osvalues = osvalues;
	}

	public String getRes() {
		return res;
	}

	public void setRes(String res) {
		this.res = res;
	}
	

}
